import BaseCURDV2Api from '@/framework/infra/base/BaseCURDV2Api'

class TravelStrategyTypeApi extends BaseCURDV2Api {
  constructor() {
    super('mj/futianStreet')
  }

  async listAll () {
    const { records } = await this.getSelf('/api/mj/futianStreet/list-page')
    return records?.map(v => ({
      value: v.id,
      label: v.title
    }))
  }
}

export const travelStrategyTypeApi = new TravelStrategyTypeApi()
